package io.kimmking.common.zookeeper.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "kk.zookeeper")
public class ZookeeperProperty {

    /**
     * ZK的连接串URL
     */
    private String connectURL;

    /**
     * 会话超时时间(ms)
     */
    private Integer sessionTimeout = 100000;

    /**
     * 连接超时时间(ms)
     */
    private Integer connectionTimeout = 100000;

    /**
     * 初始重试等待时间(ms)
     */
    private Integer baseSleepTime = 2000;

    /**
     * 最大的重试次数
     */
    private Integer maxRetries = 6;

}
